﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common.Master" AutoEventWireup="true" CodeBehind="PageFileList.aspx.cs" Inherits="Web.Views.ArchiveManage.PageFileList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" src="../../Javascript/UserControls.js"></script>
<script type="text/javascript">
    function closePage() {
        var obj = window.opener.document;
        var btn = $("#ctl00_edit_hidBtn", obj);
        if (btn.length > 0)
            btn[0].click();
        window.close();
    }

    //查看详情
    function openViewPage(url) {
        window.open(url, "查看详情");
    }

    $(function () {
    //绑定取消按钮事件
        $("#btnCancel").click(function () {
            window.close();
        });
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="toolbar2">
        <button type="button" class="sexybutton" id="btnSave" runat="server" onserverclick="btnSave_Click" ><span><span><span class="save">确定</span></span></span></button>
        <button type="button" id="btnCancel" class="sexybutton"  ><span><span><span class="cancel">取消</span></span></span></button>
      </div>

  <fieldset>
  <legend>[<%=archiveTypeName%>] 活动件列表</legend>
  <h3>件列表</h3>
<ep:EPGridView ID="gv_PageFile" DataKeyNames="DATAID" runat="server" Width="100%" ShowCheckBox="true" 
    OnRowDataBound="gv_pageFileRowDataBound">
     <Columns>
     <asp:TemplateField>
          <HeaderStyle Width="5%" />
          <HeaderTemplate>详情</HeaderTemplate>
          <ItemStyle HorizontalAlign="Center" />
          <ItemTemplate>      
          <asp:Button class="btn" Text="详情" runat="server" ID="view" />
          </ItemTemplate>
          </asp:TemplateField>
      <asp:BoundField HeaderText="档号" DataField="ArchiveNum" HeaderStyle-Width="8%" ItemStyle-HorizontalAlign="Center" />
      <asp:BoundField HeaderText="全宗号" DataField="FullFondsNum" HeaderStyle-Width="7%" ItemStyle-HorizontalAlign="Center" />
      <asp:BoundField HeaderText="题名" DataField="TITLE" HeaderStyle-Width="20%" ItemStyle-HorizontalAlign="Center" />
     <asp:BoundField HeaderText="密级" DataField="F_SECURITYTYPE" HeaderStyle-Width="6%" ItemStyle-HorizontalAlign="Center" />
        <asp:BoundField HeaderText="保管期限" DataField="F_KEEPTIME" HeaderStyle-Width="8%" ItemStyle-HorizontalAlign="Center" />
         <asp:BoundField HeaderText="归档单位" DataField="FIleOrgID" HeaderStyle-Width="8%" ItemStyle-HorizontalAlign="Center" />
         <asp:BoundField HeaderText="文件日期" DataField="PublishTime" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="false" HeaderStyle-Width="8%" ItemStyle-HorizontalAlign="Center" />
      <asp:BoundField HeaderText="载体类型" DataField="F_CarrierType" HeaderStyle-Width="6%" ItemStyle-HorizontalAlign="Center" />
               <asp:BoundField HeaderText="互见号" DataField="Hujianhao" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center" />
        </Columns>
      </ep:EPGridView>
       <ep:AspNetPager SubmitButtonText=" GO " ID="pager" Height="26px"    Width="100%" CssClass="yahoo2"
                    runat="server"  PageSize="10" LayoutType="Table"
                    ShowCustomInfoSection="Right" CustomInfoClass="custom" CustomInfoStyle=" clear:both;"
                    ShowPageIndexBox="Always" SubmitButtonImageUrl="../Images/go.png" ShowPageIndex="true"
                    PageIndexBoxType="TextBox"  CustomInfoHTML="第 %CurrentPageIndex% 页，共 %PageCount% 页，每页显示 %PageSize% 条，共 %RecordCount% 条" OnPageChanging="pager_PageChanging"
                    AlwaysShow="false">
                </ep:AspNetPager>
</fieldset>
</asp:Content>
